import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/hexiao/hexiaorecordlist', { params })
}
// 获取用户列表
export function GetUserData(params: any) {
  return api.get('/api/hexiao/hexiaouserlist', { params })
}
// 获取详情
export function GetDataDetail(id: string) {
  return api.get(`/api/hexiao/detail/${id}`)
}
// 修改状态
export function PatchModifyType(params: any) {
  return api.patch('/api/hexiao/modifyopenuserenable', params)
}
// 添加
export function PostCreateData(params: any) {
  return api.post('/api/hexiao/createopenuser', params)
}
// 编辑
export function PutModifyData(params: any) {
  return api.put('/api/hexiao/modifyopenuser', params)
}
